﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hander.Customization
{
    class Global
    {
        private static string root_dir = "";
        private static string conf_subdir = "Res";
        private static string data_subdir = "Data";
        private static string log_subdir = "Logs";
        private static string file_log_xml = "Logger-conf.xml";
        private static string file_conf_xml = "Apps-conf.xml";
        private static string default_pwd = "961120";

        public static string default_litedb = "LiteDB";
     
        public static readonly string mnt_cls = "数据分类维护";

        /// <summary>
        /// 工作事项
        /// </summary>
        public static readonly string func_work_item = "工作事项";
        public static readonly string func_exam_doc = "上岗考试";



        /// <summary>
        /// 应用程序的主目录
        /// </summary>
        public static string Root_dir { get => root_dir; set =>  root_dir = value;  }
        
        public static string Conf_subdir { get => conf_subdir; set => conf_subdir = value; }
        public static string Data_subdir { get => data_subdir; set => data_subdir = value; }
        public static string Log_subdir { get => log_subdir; set => log_subdir = value; }
        public static string File_log_xml { get => file_log_xml; set => file_log_xml = value; }
        public static string File_conf_xml { get => file_conf_xml; set => file_conf_xml = value; }
        public static string Default_pwd { get => default_pwd; set => default_pwd = value; }

        /// <summary>
        /// 重置根目录后，初始化各相关信息
        /// </summary>
        //public static void ChangeToSame()
        //{
        //    Conf_subdir = Root_dir + Path.DirectorySeparatorChar + Conf_subdir;
        //    Data_subdir = Root_dir + Path.DirectorySeparatorChar + Data_subdir;
        //    Log_subdir = Root_dir + ParectorySeparatorChar + Log_subdir;
        //    File_log_xml = Conf_subdir + Path.DirectorySeparatorChar + File_log_xml;
        //    File_conf_xml = Conf_subdir + Path.DirectorySeparatorChar + File_conf_xml;

        //}


    }

    class  DataDictDef
    {
        
    }
    enum ENUM_CLS_WORK
    {
        ITEM,REQ,TASK
    }
}
